package com.bbcare.exportExcel.plat.entity;	

import java.util.Date;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

/**
 * @name:问题选项	
 * @author:	
 * @createTime: 
 */	
	
@Entity	
@Table(name="t_options")	
public class Options {	
	
	@Id	
	@GenericGenerator(name="systemUUID",strategy="uuid")	
	@GeneratedValue(generator="systemUUID")	
	@Column(name="_id")
	private String id;
	
	//创建时间	
	@Column(name="_createTime")
	private Date createTime;	
	
	//选择描述	
	@Column(name="_note")
	private String note;	
	
	//上一题Id	
	@Column(name="_lastId")
	private String lastId;	
	
	//下一题Id	
	@Column(name="_nextId")
	private String nextId;	
	
	//上一题
	@Column(name="_lastName")
	private String lastName;
	
	//下一题
	@Column(name="_nextName")
	private String nextName;
	
	//选项类型
	@Column(name="_type")
	private String type;//1、纯文字	2、图片选项

	//附件路径类型	
	@Column(name="_filePathType")
	private String filePathType;	
	
	//附件路径	
	@Column(name="_filePath")
	private String filePath;
	
	//所属问题
	@ManyToOne
    @JoinColumn(name="_question_id")
    private Question question;
    
    //关联问题名称
	@Column(name="_question_name")
    private String questionName;
	
	//附件类型
	@Column(name="_fileType")
	private String fileType;	//1、图片	2、动画
	
	//是否选中
	@Transient
	private Boolean isChecked;
	
	//前台背景色
	@Column(name="_backgdColor")
	private Integer backgdColor;	//1、绿	2、蓝		3、红
	
	//分值
	@Column(name="_sorce")
	private Integer sorce;
	
	public String getId() {	
		return id;	
	}	
	
	public void setId(String id) {	
		this.id = id;	
	}

	public Date getCreateTime() {	
		return createTime;	
	}	
	
	public void setCreateTime(Date createTime) {	
		this.createTime = createTime;	
	}
	
	public String getNote() {	
		return note;	
	}	
	
	public void setNote(String note) {	
		this.note = note;	
	}
	
	public String getLastId() {	
		return lastId;	
	}	
	
	public void setLastId(String lastId) {	
		this.lastId = lastId;	
	}
	
	public String getNextId() {	
		return nextId;	
	}	
	
	public void setNextId(String nextId) {	
		this.nextId = nextId;	
	}
	
	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getNextName() {
		return nextName;
	}

	public void setNextName(String nextName) {
		this.nextName = nextName;
	}

	public String getFilePathType() {	
		return filePathType;	
	}	
	
	public void setFilePathType(String filePathType) {	
		this.filePathType = filePathType;	
	}
	
	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public String getFilePath() {	
		return filePath;	
	}	
	
	public void setFilePath(String filePath) {	
		this.filePath = filePath;	
	}
	
	public Question getQuestion() {	
		return question;	
	}
	
	public void setQuestion(Question question) {	
		this.question = question;	
	}
	
	public String getQuestionName() {	
		return questionName;	
	}
	
	public void setQuestionName(String questionName) {	
		this.questionName = questionName;	
	}
	@Transient
	public Boolean getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(Boolean isChecked) {
		this.isChecked = isChecked;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getBackgdColor() {
		return backgdColor;
	}

	public void setBackgdColor(Integer backgdColor) {
		this.backgdColor = backgdColor;
	}

	public Integer getSorce() {
		return sorce;
	}

	public void setSorce(Integer sorce) {
		this.sorce = sorce;
	}
	
}